package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.BalanceQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.BalanceQueryResponse;
import com.chinaums.fsp.sdk.pgt.params.BusinessInfoQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.BusinessInfoQueryResponse; 
/**
 * 工商信息查询
 * @author hty
 */
public class BusinessInfoQuery extends BaseRequest{

	public void testBusinessInfoQueryRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_TRAANS_BUSINESS_INFO.getTransCode());
		
		BusinessInfoQueryRequest data = BusinessInfoQueryRequest.newBuilder()
																	.setCertId("931310201785069747")
																	.setMobile("15259342773")
																	.setStateOwnedFlag("")
																	.build()
																	;
		rf.transType(TransType.DRAFT_TRAANS_BUSINESS_INFO.getTransCode())
		.responseClass(BusinessInfoQueryResponse.class)
		.data(data)
		;
		
		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}
	
}